package com.system.HRDepartment.service;

import java.util.Date;
import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.system.employee.entity.Employee;
import com.system.common.util.Sex;



public interface IHRService {
	public void saveOrUpdate(Employee employee);
	public void delete(Employee employee);
	public Employee findOne(Long id);
	public List<Employee> findAll();
	
	//自定义查询，传参
   	public int saveOrUpdate(Long id, String empName,Sex sex,Date birthday,String bornPlace,String address,String email,String phone,String education,String political,String ethnic,String idcard,String idcardImg);
	public int deleteEmployees(Long[] ids);
	
	//自定义分页查询
	public Page<Employee> findAll(String empName ,Pageable pageable);
	
	//动态条件查询
	//public Page<Employee> findAll(Specification<Employee> spec, Pageable pageable);
	
	
	
	
	
}
